<?php
namespace app\common\model;

use think\Model;

class VipOrder extends Model
{
    protected $autoWriteTimestamp = true;
    
    const STATUS_UNPAID = 0;    // 未支付
    const STATUS_PAID = 1;      // 已支付
    const STATUS_EXPIRED = 2;   // 已过期
    
    public function user()
    {
        return $this->belongsTo('User');
    }
}